//
//  ILLinkQRCodeUtil.h
//  IMILabKit
//
//  Created by OrrHsiao on 2022/7/1.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

typedef void(^ILLinkQRCodeUtilStringBlock)(NSString * _Nullable str);

NS_ASSUME_NONNULL_BEGIN

@interface ILLinkQRCodeUtil : NSObject

/// 生成一个二维码
/// @param targetString 二维码内容
/// @param size 尺寸
/// @param logoImage 中间的logo
/// @param logoSize logo尺寸
+ (UIImage *)createQRCodeWithTargetString:(nonnull NSString *)targetString size:(CGFloat)size logoImage:(nullable UIImage *)logoImage logoSize:(CGFloat)logoSize;

/// 生成一个摄像机绑定二维码的json字符串
/// @param WIFIPwd wifi密码
/// @param complet 完成回调
+ (void)creatCameraBindQRCodeJsonStringWithWIFIPwd:(nullable NSString *)WIFIPwd completBlock:(ILLinkQRCodeUtilStringBlock)complet;

/// 创建token
/// @param b bssid
/// @param p password
/// @param t 随机数
+ (NSString *)creatTokenWithBSSID:(nullable NSString *)b password:(nullable NSString *)p random:(nonnull NSString *)t;

@end

NS_ASSUME_NONNULL_END
